<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>打印销售订单内容</title>
    <%= stylesheet_link_tag "/stylesheets/print.css" %>
    <style type="text/css">
      .table{border-collapse:collapse; font-size:13px; height:24px; line-height:24px;}
      .table tr td{border:solid 1px;}
    </style>
  </head>
  <body>
    <table width="700" class="table">
      <thead>
        <tr>
          <td width="123" style="text-align:center">商品编号</td>
          <td width="370" style="text-align:center">商品名称</td>
          <td width="50" style="text-align:center">单位</td>
          <td width="50" style="text-align:center">数量</td>
          <td width="80" style="text-align:center">单价</td>
          <td width="80" style="text-align:center">金额</td>
        </tr>
      </thead>
      <%@loanDetails.each do |loanDetail|%>
        <tr>
          <td width="123" > &nbsp;<%=loanDetail.product.number%></td>
          <td width="370" > &nbsp;<%=loanDetail.product.name%></td>
          <td width="50">单位</td>
          <td width="50" ><div align="right"><%=loanDetail.quantity%>&nbsp;&nbsp;</div> </td>
          <td width="80" ><div align="right"> &nbsp;&nbsp;</div> </td>
          <td width="80" ><div align="right"> &nbsp;&nbsp;</div> </td>
        </tr>
      <% end%>
      <tr>
        <td width="123" > </td>
        <td width="370" > </td>
        <td width="50">总计:</td>
        <td width="50" > <div align="right"><%=@totalQuantity%>&nbsp;&nbsp;</div></td>
        <td width="80" > </td>
        <td width="80" ><div align="right"> &nbsp;&nbsp;</div> </td>
      </tr>
    </table>
  </body>
</html>